package com.nyist.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

/**
 * @author yangxiaogen
 * @date 2021/2/10 11:09
 */
@RestController
@RequestMapping("/ali/pay")
@Slf4j
public class AliPaymentController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/nacosPort")
    public String getServicePort() {

        return "nacos"+serverPort;
    }

}
